home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
amos
/
flight.lha
/
flight.AMOS
/
flight.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1995-10-29
|
2KB
|
43 lines
'preflight check
Dim PARTS(5) : Dim SURE(3)
PREFLIGHT:
PARPLUS=0
Paper 0 : Cls
Pen 2 : Centre "Preflight Check"
Locate 5,3 : Print "1- Computer"
Locate 5,4 : Print "2- Thrusters"
Locate 5,5 : Print "3- Controls"
Locate 5,6 : Print "4- Fuel"
Locate 5,7 : Print "5- Robot legs"
Locate 2,9 : Print "Our engineers can ensure workability"
Locate 2,10 : Print "of 3 instruments, choose which ones:"
For I=1 To 3
Locate 5,13 : Print "Item # ";I : Locate 14,13 : Input SURE(I)
Next I
For I=1 To 5
PARTS(I)=Rnd(1)
If I=SURE(1) or I=SURE(2) or I=SURE(3) Then PARTS(I)=1
If PARTS(I)=1 Then PARPLUS=PARPLUS+1
Next I
Locate 5,13 : Print "Initiating Preflight check" : Wait 20
If PARTS(1)=1 Then Locate 19,3 : Pen 5 : Print "Ok"
If PARTS(1)=0 Then Locate 19,3 : Pen 3 : Print "Malfunction"
Wait 20
If PARTS(2)=1 Then Locate 19,4 : Pen 5 : Print "Ok"
If PARTS(2)=0 Then Locate 19,4 : Pen 3 : Print "Malfunction"
Wait 20
If PARTS(3)=1 Then Locate 19,5 : Pen 5 : Print "Ok"
If PARTS(3)=0 Then Locate 19,5 : Pen 3 : Print "Malfunction"
Wait 20
If PARTS(4)=1 Then Locate 19,6 : Pen 5 : Print "Ok"
If PARTS(4)=0 Then Locate 19,6 : Pen 3 : Print "Malfunction"
Wait 20
If PARTS(5)=1 Then Locate 19,7 : Pen 5 : Print "Ok"
If PARTS(5)=0 Then Locate 19,7 : Pen 3 : Print "Malfunction"
Wait 20
Locate 5,13 : Pen 3 : Print "Preflight check completed "
If PARPLUS=5 Then Locate 5,15 : Print "All systems are go" : Wait Key : End
If PARPLUS<5 Then Locate 5,15 : Print "System failure, takeoff aborted"
Locate 5,17 : Pen 2 : Print "press a key to restart"
Wait Key
Goto PREFLIGHT